package pag.network;

public enum CommandType {
	login(0), 
	loginOK(1), 
	logout(2), 
	logoutOK(3), 
	updateLobby(4), 
	chat(5), 
	createGame(6), 
	createGameOK(7), 
	joinGame(8), 
	joinGameOK(9), 
	updateGame(10),
	gameChat(11), 
	leaveGame(12),
	gameUpdate(14),
	loginError(15),
	updateUser(16),
	createUser(17), 
	createUserOK(18), 
	createUserError(19), 
	playerLeft(20),
	playerJoin(21),
	joinGameError(22),
	playerUpdate(23),
	terminateGame(24);

	private int index;

	private CommandType(int i) {
		this.index = i;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
}
